/*
 * @Author: HotSuitor
 * @Date: 2020-03-12 12:54:17
 * @LastEditors: hs
 * @LastEditTime: 2020-03-12 13:03:26
 * @Description: hotsuitor@qq.com
 */
 package main

 import "fmt"

 func main() {
	 var n uint64 = 3
		fmt.Printf("%d的阶乘=%d\n", n, Factorial(n))
 }

 func Factorial(n uint64)(result uint64) {
	if(n > 0) {
		result = n * Factorial(n-1)
		return result
	}
	return 1
 }
